<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>野趣生境员工荣誉积分系统</title>
<!-- <link type="text/css" href="__CSS__/main.css" rel="stylesheet"/> -->
<link type="text/css" href="__CSS__/wild.css" rel="stylesheet"/>
<script type="text/javascript" src="__PUBLIC_JS__/zepto.min.js" ></script>
<script type="text/javascript" src="__PUBLIC_JS__/fastclick.js" ></script>
<script type="text/javascript" src="__PUBLIC__/layer_mobile/layer.js" ></script>  
<script type="text/javascript" src="__PUBLIC_JS__/ming.js?v={$src_version}" ></script>
</head> 
<body>
<!-- <form method="post" action="" id="frm">   
	<div class="top_logo"><p><img src="__IMG__/pic.jpg"  /></p></div>
    <div class="wz_t"><span class="c_t">野趣生境员工荣誉积分系统</span></div>
    <div class="sjxt">
        <div class="sjxx_butT"><input name="mobile" id="mobile" type="text"   placeholder="手机号"></div>
        <div class="sjxx_butT"><input name="upwd" type="password"  id="upwd"  placeholder="密码"></div>
    </div>
    <a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx836fc5841f715e8c&redirect_uri=http%3A%2F%2Fxt.scdxtc.com&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect">微信登录</a>
    <div class="bc_but0"><a href="javascript:;" id="sbt">登录</a></div>
  <input type="hidden" value="add" name="act" />
  <input type="hidden" value="{$backURL}" name="backURL"  />
 </form> -->
 <div class="reback"><img src="__IMG__/reback.svg" onclick="javascript:history.back(-1);"></div>
 <img class="index_img" src="__IMG__/index_img.png" alt="封面图">
  <p class="page-title">野趣生境员工荣誉积分系统</p>
  <form class="info-form" method="post" action="" id="frm">
      <div class="input-item number">
          <span class="input-before"><img src="__IMG__/phone_number.png" alt="电话号码"></span>
          <input class="input phone-input"name="mobile"  id="mobile" type="text" maxlength="11" value="" placeholder="请输入电话号码">
      </div>
      <div class="input-item pwd">
          <span class="input-before"><img src="__IMG__/pwd.png" alt="电话号码"></span>
          <input class="input pwd-input" name="upwd" id="upwd" type="password" value="" placeholder="请输入密码">
      </div>
      <div class="tip">
          <span><a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx836fc5841f715e8c&redirect_uri=http%3A%2F%2Fxt.scdxtc.com&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect">微信登录</a></span>
          <span><a href="{:U('index/forget')}">忘记密码</a></span>
      </div>
      <div class="btn-group">
          <div class="btn btn-green"  id="sbt">登录</div>
      </div>
      <input type="hidden" value="add" name="act" />
      <input type="hidden" value="{$backURL}" name="backURL"  />
  </form>
 
 <script type="text/javascript">
  $(function(){

     FastClick.attach(document.body);// 解决 延迟300ms 
     $('#sbt').click(function(){
 
		var mobile=$.trim($('#mobile').val());
		
		var upwd=$.trim($('#upwd').val());
	 
	  if(mobile==''){layer.open({ content:'请输入帐号' ,skin: 'msg' ,time: 2  });return ;} 
	  if(upwd==''){layer.open({ content:'请输入密码' ,skin: 'msg' ,time: 2  });return ;} 	
	   $.ajax({

		 type:'post',

		 url:'{:U("Index/handle_login")}',

		 data:$('#frm').serialize(),  

		 dataType:'json',

		 success:function(res){
			 layer.open({ content:res.msg ,skin: 'msg' ,time: 2  });
			 
			  res.code=='1'?setTimeout("goURL('"+res.url+"')",500):'';   return ;
			   
            }

	    });

	   });	   
   });
 
  </script>
</body>

</html>
